package com.eian.boot.module.system.role.model.dto;

import com.eian.boot.common.core.model.core.BaseDTO;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 角色数据权限设置请求
 *
 * @author alex.meng
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class RoleDataScopeRequest extends BaseDTO {

    @NotNull(message = "角色ID不能为空")
    private Long roleId;

    @NotNull(message = "数据范围不能为空")
    private Integer dataScope;

    private List<Long> deptIds;
}

